<div class="page_heading_text">Upload your books for free</div>
<div style="float:left; width:916px;margin:18px 34px 0 32px; border-bottom:2px solid #F60;">
	<div style="float:left; width:580px; font-size:18px; margin-bottom:16px;">
		<b>Tips:</b> Login or register below to join the Flat World Knowledge   
		community and get access to your My Flatworld account. Don't worry, we have room for you.
	</div>
</div>
<div class="clear"></div> 

<div class="clear" style="margin-bottom:20px;"></div>
<!-- Start Book Package -->  
<div class="upload_book_area_main">
	<!-- Start Book Package -->  
	<!--<div class="upload_book_login_area">
		div class="register_login">
			<h3>Sign In</h3>
			<p>Are your already member!</p>
			<form id="user-login" method="post" action="#">
				<div>
					<fieldset class="user-login-account">
						<div id="#" class="form-item">
							<label for="edit-name">Username: <span title="This field is required." class="form-required"></span></label>
							<input type="text" class="login_text_field" value="" id="edit-name" name="#">
						</div>
						<div id="edit-pass-wrapper" class="form-item">
							<label for="edit-pass">Password: <span title="This field is required." class="form-required"></span></label>
							<input type="password" class="login_text_field" id="edit-pass" name="pass">
						</div>
					</fieldset>
					<div style="float:left; padding:0; margin:16px 0 0 0;">
						<div style="width:94px; float:left; margin:10px 0 0 0px;">
							<input type="submit" class="form-submit" id="#" value="" name="submit">
						</div>
						<div style="width:140px; float:left; margin:22px 0 0 14px;"><a class="forgotpass" href="#">Forgot your password?</a></div>
					</div>  
				</div>
			</form>
		</div>
	</div>-->
	<!-- End Book Package -->  
	<!-- Start Book Package -->  
	<div class="upload_book_registrationDetailArea">
		<div class="upload_register_login">
			<h3>Add your selling books</h3>
			<p>Join with us</p>
			<?=form_open_multipart('sell-books', array('autocomplete' => 'off', 'id' => 'sell-book', 'name' => 'sell-book'))?> 
				<div style="float:left; width:400px;">
					<fieldset class="user-login-account">
						<div id="#" class="form-item">
							<div id="#" class="form-item">
								<label for="edit-name">
									Subject: <span title="This field is required." class="form-required">*</span>
								</label>
								<?
								/*$options = array(
								  ''  => 'Subject',
								  'Space sciences'    => 'Space sciences',
								  'Earth sciences'   => 'Earth sciences',
								  'Life sciences' => 'Life sciences',
								  'Chemistry'  => 'Chemistry',
								  'Physics'    => 'Physics',
								  'Computer sciences'   => 'Computer sciences',
								  'Logic' => 'Logic',
								  'Mathematics'  => 'Mathematics',
								  'Statistics'    => 'Statistics',
								  'Systems science'   => 'Systems science',
								  'Agriculture' => 'Agriculture',
								  'Architecture and design'  => 'Architecture and design',
								  'Business'    => 'Business',
								  'Divinity'   => 'Divinity',
								  'Education' => 'Education',
								  'Engineering'  => 'Engineering',
								  'Environmental studies and Forestry'    => 'Environmental studies and Forestry',
								  'Family and consumer science'   => 'Family and consumer science',
								  'Health sciences' => 'Health sciences',
								  'Human physical performance and recreation'  => 'Human physical performance and recreation',
								  'Journalism, media studies and communication'    => 'Journalism, media studies and communication',
								);*/
								?>
								<? 
								$option=array('' =>"Subject");
								$selectedOpt='';	
								foreach($subjectData as $datam)
								{
									$option[$datam->id]=$datam->Description;
									if($this->input->post('subject')==$datam->id)
									{
										$selectedOpt=$this->input->post('subject');
									}
								} 
								?>
								<?= form_dropdown('subject', $option, $selectedOpt, 'class="add_books_subject"'); ?>
								<?=form_error('subject')?>
							</div>
							
							<div id="#" class="form-item">
								<label for="edit-name">Name of the book: <span title="This field is required." class="form-required">*</span></label>
								<?=form_input(array('name' => 'book-name', 'value'=>$this->input->post('book-name'), 'id' => 'book-name', 'class' => 'login_text_field'))?>
								<?=form_error('book-name')?>
							</div>
							<div id="#" class="form-item">
								<label for="edit-name">Phone : <span title="This field is required." class="form-required">*</span></label>
								<?=form_input(array('name' => 'phone', 'value'=>$this->input->post('phone'), 'id' => 'phone', 'class' => 'login_text_field'))?>
								<?=form_error('phone')?>
							</div>
							
							<div id="#" class="form-item">
								<label for="edit-name">ISBN Number: <span title="This field is required." class="form-required">*</span></label>
								<?=form_input(array('name' => 'isbn', 'value'=>$this->input->post('isbn'), 'id' => 'isbn', 'class' => 'login_text_field'))?>
								<?=form_error('isbn')?>
							</div>
							<div id="#" class="form-item">
								<label for="edit-name">University: <span title="This field is required." class="form-required">*</span></label>
								<?=form_input(array('name' => 'university', 'value'=>$this->input->post('university'), 'id' => 'university', 'class' => 'login_text_field'))?>
								<?=form_error('university')?>
							</div>
							<div id="#" class="form-item">
								<label for="edit-name">Campus: <span title="This field is required." class="form-required">*</span></label>
								<?=form_input(array('name' => 'campus', 'value'=>$this->input->post('campus'), 'id' => 'campus', 'class' => 'login_text_field'))?>
								<?=form_error('campus')?>
							</div>
							<div id="#" class="form-item">
								<label for="edit-name">Description: <span title="This field is required." class="form-required">*</span></label>
								<?=form_textarea(array('name' => 'description', 'value'=>$this->input->post('description'), 'id' => 'description', 'class' => 'login_text_field'))?>
								<?=form_error('description')?>
							</div>
							<div id="#" class="small_form">
								<label for="edit-name">Your Price: <span title="This field is required." class="form-required">*</span></label>
								<?=form_input(array('name' => 'yourPrice', 'value'=>$this->input->post('yourPrice'), 'id' => 'yourPrice', 'class' => 'login_price_field'))?>
								<?=form_error('yourPrice')?>
							</div>
							<div id="#" class="small_form" style="margin-right:116px;">
								<label for="edit-name">Real Price: <span title="This field is required." class="form-required">*</span></label>
								<?=form_input(array('name' => 'realPrice', 'value'=>$this->input->post('realPrice'), 'id' => 'realPrice', 'class' => 'login_price_field'))?>
								<?=form_error('realPrice')?>
							</div>
						</div>
					</fieldset>
					<div id="#" class="form-item">
						<label for="edit-name">Upload book photo: <span title="This field is required." class="form-required">*</span></label>
						<?=form_upload(array('name' => 'bookImage', 'id' => 'bookImage', 'class' => 'upload_login_text_field'))?>
						<?=form_error('bookImage')?>
					</div>
					<div style="float:left; width:300px; margin:20px 0 20px 0px;">
						<div id="#" class="form-item"><?=$recaptcha_html?></div>
					</div>
					<div class="terms_and_conditions_area">
						<?=form_checkbox(array('name' => 'iaccept', 'id' => 'user_iaccept', 'value' => 'iaccept', 'checked' => FALSE))?>
						<span>I agree <a href="terms-conditions.php">Terms and conditions</a></span>
						<?=form_error('iaccept')?>
					</div>
					<input type="submit" class="submit_create_account_submit" id="#" value="" name="uploadBookSubmit">
				</div>
			<?= form_close() ?>
		</div> 
	</div>
</div> 
<!-- End Book Package -->

<div class="clear" style="margin-bottom:20px;"></div> 